#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	string x, y;
	cin >> x >> y;
	reverse(x.begin(), x.end());
	reverse(y.begin(), y.end());

	vector<int> a(900), b(900);
	for (int i = 0; i < x.size(); i++)
		a[i] = x[i] - '0';
	for (int i = 0; i < y.size(); i++)
		b[i] = y[i] - '0';

	vector<int> c(1000);
	for (int i = 0; i < 600; i++) {
		c[i] += a[i] + b[i] ;
		for (int j = i; j < 600; j++) {
			if (c[i] < 10)	break;
			c[i + 1] += c[i] / 10;
			c[i] %= 10;
		}
	}
	reverse(c.begin(), c.end());
	int index = 0;
	for (; !c[index] && index < 1000; index++);
	for (int i = index; i < 1000; i++)
		cout << c[i];
	if (index == 1000)
		cout << "0";
	return 0;
}
